<?php if ($comfy['ctabs'] == true) : ?>
<div class="box_a">

	<h2><?php print HOT_TOPICS; ?> <?php print IN_TEXT; ?> <?php print get_cat_name($cat); ?><a href="#minimize" class="Sminimize"></a><a href="#close" class="Sclose"></a></h2>
	<div style="padding:0 0 0 0">
	
	<ul id="Ctabs" class="tabs">
		<li><a href="#most-viewed" rel="mostv" class="selected"><?php print MOST_VIEWED; ?></a></li>
		<li><a href="#top-rated" rel="trated"><?php print TOP_RATED; ?></a></li>
		<li><a href="#most-rated" rel="mrated"><?php print MOST_RATED; ?></a></li>
	</ul><div class="clear"></div>
	
	<ul id="mostv" class="tabcontent">
	<?php get_most_viewed_category($cat, 'post', 10); ?>
	</ul>
	
	<ul id="trated" class="tabcontent">
	<?php get_highest_rated_category($cat, 'post', 0, 10); ?>
	</ul>

	<ul id="mrated" class="tabcontent">
	<?php get_most_rated_category($cat, 'post', 0, 10); ?>
	</ul>
	
	<script type="text/javascript">
	var Ctabs=new ddtabcontent("Ctabs")
	Ctabs.setpersist(false)
	Ctabs.setselectedClassTarget("link")
	Ctabs.init()
	</script>
	
	</div>

<span class="foot"></span>
</div>
<?php endif; ?>